  axios.post('/excel', {}, {
                responseType: 'arraybuffer'
            })
                .then((response) => {
                    var linkElement = document.createElement('a');
                    try {
                        var blob = new Blob([response.data], { type: 'application/octet-stream' });
                        var url = window.URL.createObjectURL(blob);
                        console.log(url)
                        linkElement.setAttribute('href', url);
                        linkElement.setAttribute("download", 'filename.xlsx');
                        var clickEvent = new MouseEvent("click", {
                            "view": window,
                            "bubbles": true,
                            "cancelable": false
                        });
                        linkElement.dispatchEvent(clickEvent);
                    } catch (ex) {
                        console.log(ex);
                    }
                });